﻿using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Input;
using TimedTask.Core;
using TimedTask.ViewModel;

namespace TimedTask.Views
{
    /// <summary>
    /// PageImageDown.xaml 的交互逻辑
    /// </summary>
    public partial class PageFileDown : Window
    {
        public PageFileDown()
        {
            InitializeComponent();

            this.btnClose.Click += (s, e) =>
            {
                PageFileDownViewModel.Reset();
                base.Close();
            };
            this.MouseLeftButtonDown += (s, e) =>
            {
                if (e.LeftButton == MouseButtonState.Pressed)
                {
                    this.DragMove();
                }
            };
        }
    }
}
